/*
 * Copyright (c) 2017. 深圳掌控网络有限公司. All rights reserved.
 */

package com.yiqi.lottery.feature.find.contract;

import com.suozhang.framework.entity.bo.PageData;
import com.suozhang.framework.entity.bo.Result;
import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.lottery.entity.bo.CircleBo;
import com.yiqi.lottery.entity.bo.LotteryHistoryBo;
import com.yiqi.lottery.entity.bo.LotteryResultBo;
import io.reactivex.Observable;

import java.util.List;

/**
 *      LIJUWEN
 * @email yiyayiyayaoljw@gmail.com
 * @date 2017/4/11 9:06
 */
public interface ResultContract {

    interface Model {
        Observable<List<LotteryResultBo>> getLotteryResult(int listen);

        Observable<List<LotteryHistoryBo>> getLotteryHistory(String label);

    }

    interface View extends BaseView {
        void showLotteryResultSuccess(List<LotteryResultBo> resultBos);

        void showLotteryHistorySuccess(List<LotteryHistoryBo> resultBos);

        void showLotteryError(String error);

        void showLotteryEmpty();


    }


    interface Presenter extends BasePresenter {
        void getLotteryResult(int listen);

        void getLotteryHistory(String label);
    }
}
